﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013AB RID: 5035
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeTrialActivityRewardScRsp : IMessage<TakeTrialActivityRewardScRsp>, IMessage, IEquatable<TakeTrialActivityRewardScRsp>, IDeepCloneable<TakeTrialActivityRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F7B RID: 16251
		// (get) Token: 0x0600E17A RID: 57722 RVA: 0x0025ACB3 File Offset: 0x00258EB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeTrialActivityRewardScRsp> Parser
		{
			get
			{
				return TakeTrialActivityRewardScRsp._parser;
			}
		}

		// Token: 0x17003F7C RID: 16252
		// (get) Token: 0x0600E17B RID: 57723 RVA: 0x0025ACBA File Offset: 0x00258EBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeTrialActivityRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F7D RID: 16253
		// (get) Token: 0x0600E17C RID: 57724 RVA: 0x0025ACCC File Offset: 0x00258ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeTrialActivityRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E17D RID: 57725 RVA: 0x0025ACD3 File Offset: 0x00258ED3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTrialActivityRewardScRsp()
		{
		}

		// Token: 0x0600E17E RID: 57726 RVA: 0x0025ACDC File Offset: 0x00258EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTrialActivityRewardScRsp(TakeTrialActivityRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.stageId_ = other.stageId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E17F RID: 57727 RVA: 0x0025AD34 File Offset: 0x00258F34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTrialActivityRewardScRsp Clone()
		{
			return new TakeTrialActivityRewardScRsp(this);
		}

		// Token: 0x17003F7E RID: 16254
		// (get) Token: 0x0600E180 RID: 57728 RVA: 0x0025AD3C File Offset: 0x00258F3C
		// (set) Token: 0x0600E181 RID: 57729 RVA: 0x0025AD44 File Offset: 0x00258F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F7F RID: 16255
		// (get) Token: 0x0600E182 RID: 57730 RVA: 0x0025AD4D File Offset: 0x00258F4D
		// (set) Token: 0x0600E183 RID: 57731 RVA: 0x0025AD55 File Offset: 0x00258F55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003F80 RID: 16256
		// (get) Token: 0x0600E184 RID: 57732 RVA: 0x0025AD5E File Offset: 0x00258F5E
		// (set) Token: 0x0600E185 RID: 57733 RVA: 0x0025AD66 File Offset: 0x00258F66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x0600E186 RID: 57734 RVA: 0x0025AD6F File Offset: 0x00258F6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeTrialActivityRewardScRsp);
		}

		// Token: 0x0600E187 RID: 57735 RVA: 0x0025AD80 File Offset: 0x00258F80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeTrialActivityRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.StageId == other.StageId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E188 RID: 57736 RVA: 0x0025ADE0 File Offset: 0x00258FE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E189 RID: 57737 RVA: 0x0025AE4E File Offset: 0x0025904E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E18A RID: 57738 RVA: 0x0025AE56 File Offset: 0x00259056
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E18B RID: 57739 RVA: 0x0025AE60 File Offset: 0x00259060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.StageId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.StageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E18C RID: 57740 RVA: 0x0025AED8 File Offset: 0x002590D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E18D RID: 57741 RVA: 0x0025AF48 File Offset: 0x00259148
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeTrialActivityRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E18E RID: 57742 RVA: 0x0025AFC4 File Offset: 0x002591C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E18F RID: 57743 RVA: 0x0025AFD0 File Offset: 0x002591D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 24U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.StageId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x0400593E RID: 22846
		private static readonly MessageParser<TakeTrialActivityRewardScRsp> _parser = new MessageParser<TakeTrialActivityRewardScRsp>(() => new TakeTrialActivityRewardScRsp());

		// Token: 0x0400593F RID: 22847
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005940 RID: 22848
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04005941 RID: 22849
		private uint retcode_;

		// Token: 0x04005942 RID: 22850
		public const int RewardFieldNumber = 1;

		// Token: 0x04005943 RID: 22851
		private ItemList reward_;

		// Token: 0x04005944 RID: 22852
		public const int StageIdFieldNumber = 14;

		// Token: 0x04005945 RID: 22853
		private uint stageId_;
	}
}
